package Calendar;

import java.awt.BorderLayout;
import java.awt.Toolkit;

import javax.swing.JFrame;

import net.miginfocom.swing.MigLayout;
import Calendar.table.DateTablePanel;
import Calendar.toolBar.ToolBarPanel;

public class Zhuda222 extends JFrame {

	private static final long serialVersionUID = 1L;
	
	public static void main(String[] args) {
		JFrame.setDefaultLookAndFeelDecorated(true);
		new Zhuda222();
	}

	public Zhuda222() {
		super("z2");
		this.setSize(500, 428);
		int x_size = (int) (Toolkit.getDefaultToolkit().getScreenSize().getWidth());
		int y_size = (int) (Toolkit.getDefaultToolkit().getScreenSize().getHeight());
		setLocation((x_size - 300) / 2, (y_size - 350) / 2);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		DateTablePanel dateTablePanel = new DateTablePanel(new MigLayout());
		
		add(new ToolBarPanel(dateTablePanel));
		add(dateTablePanel, BorderLayout.SOUTH);
		
		setVisible(true);
        setResizable(false);
	}
	
}
